package com.cos.emp.dao;

import com.cos.emp.entity.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: COS
 * @time: 2022/6/1 14:27
 * @description:
 */
public interface EmpDao {
    /**
     *
     * @author: COS
     * @return:
     * @time: 2022/6/1 14:34
     * @description:  使用员工名查询员工数据
     */
    Emp getEmpByEname(@Param("ename") String ename);

    List<Emp> getAll();

    int delEmp(@Param("eno") Integer eno);

    int addEmp(Emp e);
}
